﻿module lang.d.sts.declarations.daliasdeclaration;

import lang.d.sts.declarations.ddeclaration;
import lang.d.visitors.dvisitor;

class DAliasDeclaration: DDeclaration {
    private DDeclaration myDeclaration;

    public this(DDeclaration declaration, uint attribute) {
        super(attribute);
        myDeclaration = declaration;
        myDeclaration.setParent(this);
    }

    public DDeclaration getDeclaration() {
        return myDeclaration;
    }

    override void accept(DVisitor visitor) {
        visitor.visitAliasDeclaration(this);
    }
}
